﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Icoders.MarketTracker.Web.Lib.Command.Bus.Impl
{
  public  class StubbedBusSubscriber : IBusSubscriber
  {
      private IRunCommandInHost _runCommandInHost;

      public StubbedBusSubscriber(IRunCommandInHost runCommandInHost)
      {
          _runCommandInHost = runCommandInHost;
      }

      public void HandleCommand(ICommand command)
      {
          _runCommandInHost.RunCommand(command);
      }
    }
}
